var express = require('express');
var router = express.Router();

/* GET home page. */
router.get('/', function (req, res, next) {
    res.render('index', { title: 'Express' });
});

//登录模块
router.post('/login', async function (req, res, next) {
    // const { account, password } = req.body;
    console.log(req.body);
    // const data = await login(req.body);
    // res.send(data);
});
module.exports = router;
